package game.console;

public class MessageConsoleStream implements IConsoleStream
{
    private String  message;
    private boolean isReturned;
    
    public MessageConsoleStream(String message)
    {
        this.message = message;
        this.isReturned = false;
    }
    
    @Override
    public String readLine()
    {
        if (isReturned)
        {
            return null;
        }
        isReturned = true;
        return message;
    }
}
